package thread.clock;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Random;

public class Clock extends Thread{
	
	
	@Override
	public void run() {
		for(int i=0 ; i<10 ; i++){
			Calendar calendar = Calendar.getInstance();
			System.out.println(calendar.getTime());
		
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
